Class SystemFileManagerImpl

java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.ui.impl.SystemFileManagerImpl
All Implemented Interfaces:
IPCObject, SystemFileManager

public class SystemFileManagerImpl extends IPCObjectImpl implements SystemFileManager
Information provided by the PKI file:

    \class SystemFileManager
    
    \brief SystemFileManager provides file IO to the local system.
    
    \example systemFileManager()
    
Author:
Auto-generated
  • Constructor Details

  • Method Details

    • getOpenFileName

      public String getOpenFileName(String caption, String path, String filters)
      Information provided by the PKI file:
      
          \brief Prompt the user to select a file to open. It blocks until the user has selected or canceled the dialog.
          
          \param caption, the title of the open dialog
          \param path, the default full path
          \param filter, the filter of files to show in open dialog in the following format:
          <filter>[;;<filter[...]]]
          where each <filter> is in the following format:
          <name>(*.<extension>[ *.<extension>[...]])
          
          example: "Packet Tracer Activity Sequencer File (*.pks *.pksz);;Zip File (*.zip)"
          \return QString, the full path of the selected file
          
              
      Specified by:
      getOpenFileName in interface SystemFileManager
      Parameters:
      caption - Takes in a parameter of caption
      path - Takes in a parameter of path
      filters - Takes in a parameter of filters
      Returns:
      String Returns a String
    • getOpenFileNames

      public List<String> getOpenFileNames(String caption, String path, String filters)
      Information provided by the PKI file:
      
          \brief Prompt the user to select one or multiple files to open. It blocks until the user has selected or canceled the dialog.
          
          \param caption, the title of the open dialog
          \param path, the default full path
          \param filter, the filter of files to show in open dialog in the following format:
          <filter>[;;<filter[...]]]
          where each <filter> is in the following format:
          <name>(*.<extension>[ *.<extension>[...]])
          
          example: "Packet Tracer Activity Sequencer File (*.pks *.pksz);;Zip File (*.zip)"
          \return vector<QString>, the full path of the selected files
          
              
      Specified by:
      getOpenFileNames in interface SystemFileManager
      Parameters:
      caption - Takes in a parameter of caption
      path - Takes in a parameter of path
      filters - Takes in a parameter of filters
      Returns:
      List<String> Returns a List<String>
    • getSaveFileName

      public String getSaveFileName(String caption, String path, String filters)
      Information provided by the PKI file:
      
          \brief Prompt the user to select a file to save. It blocks until the user has selected or canceled the dialog.
          
          \param caption, the title of the save dialog
          \param path, the default full path
          \param filter, the filter of files to show in save dialog in the following format:
          <filter>[;;<filter[...]]]
          where each <filter> is in the following format:
          <name>(*.<extension>[ *.<extension>[...]])
          
          example: "Packet Tracer Activity Sequencer File (*.pks *.pksz);;Zip File (*.zip)"
          \return QString, the full path of the selected file
          
              
      Specified by:
      getSaveFileName in interface SystemFileManager
      Parameters:
      caption - Takes in a parameter of caption
      path - Takes in a parameter of path
      filters - Takes in a parameter of filters
      Returns:
      String Returns a String
    • getFileContents

      public String getFileContents(String filename)
      Information provided by the PKI file:
      
          \brief Returns the content of a plain text file.
          
          \param filename, the full path of the file
          
          \return QString, the content of the file
          
              
      Specified by:
      getFileContents in interface SystemFileManager
      Parameters:
      filename - Takes in a parameter of filename
      Returns:
      String Returns a String
    • getFileBinaryContents

      public String getFileBinaryContents(String filename)
      Information provided by the PKI file:
      
          \brief Returns the content of a binary file in base 64 format.
          
          \param filename, the full path of the file
          
          \return QString, the content of the file
          
              
      Specified by:
      getFileBinaryContents in interface SystemFileManager
      Parameters:
      filename - Takes in a parameter of filename
      Returns:
      String Returns a String
    • writeTextToFile

      public boolean writeTextToFile(String filename, String contents64)
      Information provided by the PKI file:
      
          \brief Writes plain text content to a file using UTF-8 encoding.
          
          \param filename, the full path of the file.
          \param contents64, the content in base 64 format
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      writeTextToFile in interface SystemFileManager
      Parameters:
      filename - Takes in a parameter of filename
      contents64 - Takes in a parameter of contents64
      Returns:
      boolean Returns a boolean
    • writePlainTextToFile

      public boolean writePlainTextToFile(String filename, String contents)
      Information provided by the PKI file:
      
          \brief Writes plain text content to a file using UTF-8 encoding.
          
          \param filename, the full path of the file.
          \param contents, the contents
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      writePlainTextToFile in interface SystemFileManager
      Parameters:
      filename - Takes in a parameter of filename
      contents - Takes in a parameter of contents
      Returns:
      boolean Returns a boolean
    • writeBinaryToFile

      public boolean writeBinaryToFile(String filename, String contents64)
      Information provided by the PKI file:
      
          \brief Writes binary content to a file.
          
          \param filename, the full path of the file.
          \param contents64, the content in base 64 format
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      writeBinaryToFile in interface SystemFileManager
      Parameters:
      filename - Takes in a parameter of filename
      contents64 - Takes in a parameter of contents64
      Returns:
      boolean Returns a boolean
    • getFileSize

      public int getFileSize(String path)
      Information provided by the PKI file:
      
          \brief Returns the size of a file in bytes.
          
          \param path, the full path of the file.
          
          \return int, size of file in bytes
          
              
      Specified by:
      getFileSize in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      Returns:
      int Returns a int
    • getFileCheckSum

      public String getFileCheckSum(String path)
      Information provided by the PKI file:
      
          \brief Returns the SHA-1 checksum of a file.
          
          \param path, the full path of the file.
          
          \return QString, the SHA-1 checksum of the file
          
              
      Specified by:
      getFileCheckSum in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      Returns:
      String Returns a String
    • getFileModificationTime

      public long getFileModificationTime(String path)
      Information provided by the PKI file:
      
          \brief Returns the last modification time of a file in number of seconds that have passed since 1970-01-01T00:00:00 UTC.
          
          \param path, the full path of the file.
          
          \return int, last modification time in number of seconds that have passed since 1970-01-01T00:00:00 UTC.
          
              
      Specified by:
      getFileModificationTime in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      Returns:
      long Returns a long
    • getFilePermissions

      public FilePermissions getFilePermissions(String path)
      Information provided by the PKI file:
      
          \brief Returns the permissions of a file.
          
          \param path, the full path of the file.
          
          \return int, the permissions of the file.
          
              
      Specified by:
      getFilePermissions in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      Returns:
      FilePermissions Returns a FilePermissions
    • setFilePermissions

      public boolean setFilePermissions(String path, FilePermissions permissions)
      Information provided by the PKI file:
      
          \brief Sets the permissions of a file.
          
          \param path, the full path of the file.
          \param int, standard Unix permissions format
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      setFilePermissions in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      permissions - Takes in a parameter of permissions
      Returns:
      boolean Returns a boolean
    • copySrcFileToDestFile

      public boolean copySrcFileToDestFile(String srcFile, String destFile)
      Information provided by the PKI file:
      
          \brief Copies a file.
          
          \param srcFile, the full path of the source
          \param destFile, the full path of the destination
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      copySrcFileToDestFile in interface SystemFileManager
      Parameters:
      srcFile - Takes in a parameter of srcFile
      destFile - Takes in a parameter of destFile
      Returns:
      boolean Returns a boolean
    • moveSrcFileToDestFile

      public boolean moveSrcFileToDestFile(String srcFile, String destFile, boolean bReplace)
      Information provided by the PKI file:
      
          \brief Moves or renames a file.
          
          \param srcFile, the full path of the source
          \param destFile, the full path of the destination
          \param bReplace, true if to replace, false otherwise
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      moveSrcFileToDestFile in interface SystemFileManager
      Parameters:
      srcFile - Takes in a parameter of srcFile
      destFile - Takes in a parameter of destFile
      bReplace - Takes in a parameter of bReplace
      Returns:
      boolean Returns a boolean
    • copySrcDirectoryToDestDirectory

      public boolean copySrcDirectoryToDestDirectory(String srcDir, String destDir, boolean bReplace, FilePermissions permissions)
      Information provided by the PKI file:
      
          \brief Copies a directory.
          
          \param srcDir, the full path of the source
          \param destDir, the full path of the destination
          \param bReplace, true if to replace, false otherwise
          \param permissions, standard Unix permissions format
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      copySrcDirectoryToDestDirectory in interface SystemFileManager
      Parameters:
      srcDir - Takes in a parameter of srcDir
      destDir - Takes in a parameter of destDir
      bReplace - Takes in a parameter of bReplace
      permissions - Takes in a parameter of permissions
      Returns:
      boolean Returns a boolean
    • moveSrcDirectoryToDestDirectory

      public boolean moveSrcDirectoryToDestDirectory(String srcDir, String destDir, boolean bReplace)
      Information provided by the PKI file:
      
          \brief Moves or renames a directory.
          
          \param srcDir, the full path of the source
          \param destDir, the full path of the destination
          \param bReplace, true if to replace, false otherwise
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      moveSrcDirectoryToDestDirectory in interface SystemFileManager
      Parameters:
      srcDir - Takes in a parameter of srcDir
      destDir - Takes in a parameter of destDir
      bReplace - Takes in a parameter of bReplace
      Returns:
      boolean Returns a boolean
    • zipDirectory

      public boolean zipDirectory(String path)
      Information provided by the PKI file:
      
          \brief Zips up a directory into a zip file with the same name.
          
          \param path, the full path of the directory
          \param password, the password to use to encrypt the zip
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      zipDirectory in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      Returns:
      boolean Returns a boolean
    • zipDirectoryWithPassword

      public boolean zipDirectoryWithPassword(String path, String password)
      Specified by:
      zipDirectoryWithPassword in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      password - Takes in a parameter of password
      Returns:
      boolean Returns a boolean
    • zipDirectoryTo

      public boolean zipDirectoryTo(String path, String dstFile)
      Information provided by the PKI file:
      
          \brief Zips up a directory into a zip file.
          
          \param path, the full path of the directory
          \param dstFile, the full path of the destination zip file
          \param password, the password to use to encrypt the zip
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      zipDirectoryTo in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      dstFile - Takes in a parameter of dstFile
      Returns:
      boolean Returns a boolean
    • zipDirectoryToWithPassword

      public boolean zipDirectoryToWithPassword(String path, String dstFile, String password)
      Specified by:
      zipDirectoryToWithPassword in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      dstFile - Takes in a parameter of dstFile
      password - Takes in a parameter of password
      Returns:
      boolean Returns a boolean
    • unzipFile

      public boolean unzipFile(String filePath)
      Information provided by the PKI file:
      
          \brief Unzips up a file in the same directory with the same name.
          
          \param filePath, the full path of the zip file
          \param password, the password to use to decrypt the encrypted zip
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      unzipFile in interface SystemFileManager
      Parameters:
      filePath - Takes in a parameter of filePath
      Returns:
      boolean Returns a boolean
    • unzipFileWithPassword

      public boolean unzipFileWithPassword(String filePath, String password)
      Specified by:
      unzipFileWithPassword in interface SystemFileManager
      Parameters:
      filePath - Takes in a parameter of filePath
      password - Takes in a parameter of password
      Returns:
      boolean Returns a boolean
    • unzipFileTo

      public boolean unzipFileTo(String filePath, String dstPath)
      Information provided by the PKI file:
      
          \brief Unzips up a file in the same directory to a specified directory.
          
          \param filePath, the full path of the zip file
          \param dstPath, the full path of the destination directory
          \param password, the password to use to decrypt the encrypted zip
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      unzipFileTo in interface SystemFileManager
      Parameters:
      filePath - Takes in a parameter of filePath
      dstPath - Takes in a parameter of dstPath
      Returns:
      boolean Returns a boolean
    • unzipFileToWithPassword

      public boolean unzipFileToWithPassword(String filePath, String dstPath, String password)
      Specified by:
      unzipFileToWithPassword in interface SystemFileManager
      Parameters:
      filePath - Takes in a parameter of filePath
      dstPath - Takes in a parameter of dstPath
      password - Takes in a parameter of password
      Returns:
      boolean Returns a boolean
    • encrypt

      public String encrypt(String data, String password)
      Information provided by the PKI file:
      
          \brief FOR INTERNAL USE ONLY. Encrypts the string using password. Returns empty string if not internal script module or exapps.
          
          \param data, the string to be encrypted
          \param password, the password to use to encrypt
          
          \return QString, the encrypted data in base 64 format
          
              
      Specified by:
      encrypt in interface SystemFileManager
      Parameters:
      data - Takes in a parameter of data
      password - Takes in a parameter of password
      Returns:
      String Returns a String
    • decrypt

      public String decrypt(String data, String password)
      Information provided by the PKI file:
      
          \brief FOR INTERNAL USE ONLY. Decrypts the data using password. Returns empty string if not internal script module or exapps.
          
          \param data, the data to be decrypted in base 64 format
          \param password, the password to use to decrypt
          
          \return QString, the decrypted string
          
              
      Specified by:
      decrypt in interface SystemFileManager
      Parameters:
      data - Takes in a parameter of data
      password - Takes in a parameter of password
      Returns:
      String Returns a String
    • encryptBinary

      public String encryptBinary(String data64, String password)
      Information provided by the PKI file:
      
          \brief FOR INTERNAL USE ONLY. Encrypts the binary data using password. Returns empty string if not internal script module or exapps.
          
          \param data64, the binary data to be encrypted in base 64 format
          \param password, the password to use to encrypt
          
          \return QString, the encrypted data in base 64 format
          
              
      Specified by:
      encryptBinary in interface SystemFileManager
      Parameters:
      data64 - Takes in a parameter of data64
      password - Takes in a parameter of password
      Returns:
      String Returns a String
    • decryptBinary

      public String decryptBinary(String data64, String password)
      Information provided by the PKI file:
      
          \brief FOR INTERNAL USE ONLY. Decrypts the data using password. Returns empty string if not internal script module or exapps.
          
          \param data64, the data to be decrypted in base 64 format
          \param password, the password to use to decrypt
          
          \return QString, the decrypted data in base 64 format
          
              
      Specified by:
      decryptBinary in interface SystemFileManager
      Parameters:
      data64 - Takes in a parameter of data64
      password - Takes in a parameter of password
      Returns:
      String Returns a String
    • getEncryptedFileContents

      public String getEncryptedFileContents(String filename, String password)
      Information provided by the PKI file:
      
          \brief FOR INTERNAL USE ONLY. Reads and decrypts the file content using password. Returns empty string if not internal script module or exapps.
          
          \param filename, the full path to the file
          \param password, the password to use to decrypt
          
          \return QString, the decrypted string
          
              
      Specified by:
      getEncryptedFileContents in interface SystemFileManager
      Parameters:
      filename - Takes in a parameter of filename
      password - Takes in a parameter of password
      Returns:
      String Returns a String
    • getEncryptedFileBinaryContents

      public String getEncryptedFileBinaryContents(String filename, String password)
      Information provided by the PKI file:
      
          \brief FOR INTERNAL USE ONLY. Reads and decrypts the binary file content using password. Returns empty string if not internal script module or exapps.
          
          \param filename, the full path to the file
          \param password, the password to use to decrypt
          
          \return QString, the decrypted data in base 64 format
          
              
      Specified by:
      getEncryptedFileBinaryContents in interface SystemFileManager
      Parameters:
      filename - Takes in a parameter of filename
      password - Takes in a parameter of password
      Returns:
      String Returns a String
    • writeTextToEncryptedFile

      public boolean writeTextToEncryptedFile(String filename, String contents, String password)
      Information provided by the PKI file:
      
          \brief FOR INTERNAL USE ONLY. Encrypts the text content using password and writes to file. Returns false if not internal script module or exapps.
          
          \param filename, the full path to the file
          \param contents, the text content
          \param password, the password to use to encrypt
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      writeTextToEncryptedFile in interface SystemFileManager
      Parameters:
      filename - Takes in a parameter of filename
      contents - Takes in a parameter of contents
      password - Takes in a parameter of password
      Returns:
      boolean Returns a boolean
    • writeBinaryToEncryptedFile

      public boolean writeBinaryToEncryptedFile(String filename, String contents64, String password)
      Information provided by the PKI file:
      
          \brief FOR INTERNAL USE ONLY. Encrypts the binary content using password and writes to file. Returns false if not internal script module or exapps.
          
          \param filename, the full path to the file
          \param contents64, the data in base 64 format
          \param password, the password to use to encrypt
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      writeBinaryToEncryptedFile in interface SystemFileManager
      Parameters:
      filename - Takes in a parameter of filename
      contents64 - Takes in a parameter of contents64
      password - Takes in a parameter of password
      Returns:
      boolean Returns a boolean
    • writeTextToEncryptedLogFile

      public boolean writeTextToEncryptedLogFile(String filename, String contents)
      Information provided by the PKI file:
      
          \brief FOR INTERNAL USE ONLY. Encrypts the text content using same method as PT log file format and writes to file. Returns false if not internal script module or exapps.
          
          \param filename, the full path to the file
          \param contents, the text content
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      writeTextToEncryptedLogFile in interface SystemFileManager
      Parameters:
      filename - Takes in a parameter of filename
      contents - Takes in a parameter of contents
      Returns:
      boolean Returns a boolean
    • encryptFile

      public boolean encryptFile(String srcFile, String dstFile, String password)
      Information provided by the PKI file:
      
          \brief FOR INTERNAL USE ONLY. Encrypts a file using password and writes to another file. Returns false if not internal script module or exapps.
          
          \param srcFile, the full path to the source file
          \param dstFile, the full path of the destination file
          \param password, the password to use to encrypt
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      encryptFile in interface SystemFileManager
      Parameters:
      srcFile - Takes in a parameter of srcFile
      dstFile - Takes in a parameter of dstFile
      password - Takes in a parameter of password
      Returns:
      boolean Returns a boolean
    • decryptFile

      public boolean decryptFile(String srcFile, String dstFile, String password)
      Information provided by the PKI file:
      
          \brief FOR INTERNAL USE ONLY. Decrypts a file using password and writes to another file. Returns false if not internal script module or exapps.
          
          \param srcFile, the full path to the source file
          \param dstFile, the full path of the destination file
          \param password, the password to use to decrypt
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      decryptFile in interface SystemFileManager
      Parameters:
      srcFile - Takes in a parameter of srcFile
      dstFile - Takes in a parameter of dstFile
      password - Takes in a parameter of password
      Returns:
      boolean Returns a boolean
    • makeDirectory

      public boolean makeDirectory(String path)
      Information provided by the PKI file:
      
          \brief Creates a directory including all missing parents.
          
          \param path, the full path of the directory
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      makeDirectory in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      Returns:
      boolean Returns a boolean
    • removeFile

      public boolean removeFile(String filePath)
      Information provided by the PKI file:
      
          \brief Removes a file.
          
          \param path, the full path of the file
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      removeFile in interface SystemFileManager
      Parameters:
      filePath - Takes in a parameter of filePath
      Returns:
      boolean Returns a boolean
    • removeDirectory

      public boolean removeDirectory(String dirPath)
      Information provided by the PKI file:
      
          \brief Removes a directory recursively including all sub directories and files.
          
          \param path, the full path of the directory
          
          \return bool, true if successful, false otherwise
          
              
      Specified by:
      removeDirectory in interface SystemFileManager
      Parameters:
      dirPath - Takes in a parameter of dirPath
      Returns:
      boolean Returns a boolean
    • directoryExists

      public boolean directoryExists(String path)
      Information provided by the PKI file:
      
          \brief Returns whether a directory exists.
          
          \param path, the full path of the directory
          
          \return bool, true if it exists and is a directory, false otherwise
          
              
      Specified by:
      directoryExists in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      Returns:
      boolean Returns a boolean
    • fileExists

      public boolean fileExists(String path)
      Information provided by the PKI file:
      
          \brief Returns whether a file exists.
          
          \param path, the full path of the file
          
          \return bool, true if it exists and is a file, false otherwise
          
              
      Specified by:
      fileExists in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      Returns:
      boolean Returns a boolean
    • convertToNativeSeparators

      public String convertToNativeSeparators(String path)
      Information provided by the PKI file:
      
          \brief Converts a path to native format with native separators.
          
          \param path, a path name
          
          \return QString, the path converted to native format
          
              
      Specified by:
      convertToNativeSeparators in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      Returns:
      String Returns a String
    • convertFromNativeSeparators

      public String convertFromNativeSeparators(String path)
      Information provided by the PKI file:
      
          \brief Converts a path to Unix format with Unix separators.
          
          \param path, a path name
          
          \return QString, the path converted to Unix format
          
              
      Specified by:
      convertFromNativeSeparators in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      Returns:
      String Returns a String
    • isAbsolutePath

      public boolean isAbsolutePath(String path)
      Information provided by the PKI file:
      
          \brief Returns whether the path is absolute.
          
          \param path, a path name
          
          \return bool, whether the path is absolute.
          
              
      Specified by:
      isAbsolutePath in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      Returns:
      boolean Returns a boolean
    • isRelativePath

      public boolean isRelativePath(String path)
      Information provided by the PKI file:
      
          \brief Returns whether the path is relative.
          
          \param path, a path name
          
          \return bool, whether the path is relative.
          
              
      Specified by:
      isRelativePath in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      Returns:
      boolean Returns a boolean
    • getRelativePath

      public String getRelativePath(String path1, String path2)
      Information provided by the PKI file:
      
          \brief Returns path name of path2 relative to path1.
          
          \param path1, the full base path name
          \param path2, the full sub path name
          
          \return QString, the path name of path2 relative to path1.
          
              
      Specified by:
      getRelativePath in interface SystemFileManager
      Parameters:
      path1 - Takes in a parameter of path1
      path2 - Takes in a parameter of path2
      Returns:
      String Returns a String
    • getAbsolutePath

      public String getAbsolutePath(String path)
      Information provided by the PKI file:
      
          \brief Returns absolute path name.
          
          \param path, a path anme
          
          \return QString, absolute path name.
          
              
      Specified by:
      getAbsolutePath in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      Returns:
      String Returns a String
    • getFilesInDirectory

      public List<String> getFilesInDirectory(String path)
      Information provided by the PKI file:
      
          \brief Returns a list of files and directory names in a directory.
          
          \param path, the full path of the directory
          
          \return vector<QString>, the list of files and directory names
          
              
      Specified by:
      getFilesInDirectory in interface SystemFileManager
      Parameters:
      path - Takes in a parameter of path
      Returns:
      List<String> Returns a List<String>
    • getFileWatcher

      public SystemFileWatcher getFileWatcher()
      Information provided by the PKI file:
      
          \brief Returns the SystemFileWatcher instance for this Script Module. This is not available for ExApps and will return NULL.
          
          \return SystemFileWatcher, the instance for this Script Module
          
              
      Specified by:
      getFileWatcher in interface SystemFileManager
      Returns:
      SystemFileWatcher Returns a SystemFileWatcher